package main

import (
	"fmt"
	"net"
)

var (
	a int
	b string
	c []float32
	d func() bool
	e struct {
		a int
		b float32
		c []string
		d func() int
	}
)

const (
	PI   = 3.1415926
	MEJU = iota
	MEJU2
	MEJU3 = iota
	SB    = "mn"
	PWF   = "jkl"
	THU   = iota
)

const (
	PG  = iota
	HJK = "abc"
	WQA
)

func main() {
	var a int = 10
	fmt.Printf("%d \n", a)
	con, err := net.Dial("tcp", "127.0.0.1:8080")
	fmt.Printf("%s %s \n", con, err)
	g, h := 12, 18
	fmt.Printf("%d %d \n", g, h)
	i, _ := 15, 16
	fmt.Printf("%d \n", i)
	m := true
	fmt.Printf("%s \n", m)
	c := a + 9
	fmt.Printf("%d \n", c)
	str := "我哎"
	fmt.Printf("%s \n", str)
	k := 'k'
	f := '哈'
	fmt.Printf("%T %T \n", f, k)
	fmt.Printf("%d \n", int(k))
	o := &k
	fmt.Printf("%p \n", o)
	var p = *o
	fmt.Printf("%T \n", p)
	fmt.Printf("%d \n", p)
	var n = 12
	fmt.Printf("%d \n", n)
	fmt.Printf("%f \n", PI)
	fmt.Printf("%d \n", MEJU)
	fmt.Printf("%d \n", MEJU2)
	fmt.Printf("%d \n", MEJU3)
	fmt.Printf("%d \n", PG)
	fmt.Printf("%s \n", HJK)
	fmt.Printf("%s \n", WQA)
	fmt.Printf("%s \n", SB)
	fmt.Printf("%d \n", THU)
}
